package cn.lqz.bucttrain.pojo.entity;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 乘客
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Passenger extends BaseEntity{
    /**
     * 乘客id，自增
     */
    private Long passengerId;
    /**
     * 乘客姓名
     */
    @NotEmpty
    private String name;
    /**
     * 乘客电话
     */
    @NotEmpty
    private String phoneNumber;
    /**
     * 乘客身份证号
     */
    @NotEmpty
    private String idCard;
    /**
     * 乘客年龄
     */
    private Integer age;
    /**
     * 乘客绑定的用户id
     */
    @NotNull
    private Long userId;
}
